package com.manager.core.ad.mb

import com.manager.core.ad.mbactivity.MBBaseFullscreenActivity

object MBViewManager {

    private val views by lazy {
        hashMapOf<String,Class<MBBaseFullscreenActivity>>()
    }

    fun <T: MBBaseFullscreenActivity> register(key: String, activity: Class<T>) {
        views.put(key,activity as Class<MBBaseFullscreenActivity>)
    }

    fun findMBClass(key: String): Class<MBBaseFullscreenActivity>? = views[key]

}